-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feat/view-all-routes #70
Conversation
- Adjust the zoom level when panning the map - Add event listener for routeSelectedFromModal event - Update the layout and styling of the component - Add a button to view all available routes - Add translations for search related texts
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is looking really good! I have noted a couple behavioral changes I'd like to see before merging it in the PR. Also, here are a few things I noticed when playing around with the feature that should get fixed:
Add a title to the View All Routes modal
It should be called "All Routes", and that text should appear above the search bar.
The search bar doesn't seem to be working
{$t('loading')}... | ||
</div> | ||
</div> | ||
<LoadingSpinner /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The search bar is working but before I PR, I also added search by rotueId, I think I will remove it from the search filter so we can search by short and long name and description only
src/routes/api/oba/routes/+server.js
Outdated
// TODO: change this api after deployment of get all routes api | ||
export async function GET() { | ||
try { | ||
const agenciesResponse = await oba.agenciesWithCoverage.list(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it doesn't look like you're caching this data on the server side yet, right? This should be run once per app launch—and then cached in memory, instead of reloaded on every request.
} | ||
|
||
async function preloadRoutesData() { | ||
if (!routesCache) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🔥 🔥 🔥
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks great 🚀
No description provided.